import {of} from "rxjs";
import {ResultUtils} from "@/utils/resultUtils";
import {ResultCode} from "@/conf/resultCodeConf";



export namespace HttpExceptionUtils {

    export function UNAUTHORIZED(next: any) {
        return of(ResultUtils.errorCode(ResultCode.UNAUTHORIZED));
    }

    export function BAD_REQUEST(next: any) {
        return of(ResultUtils.error());

    }

    export function FORBIDDEN(next: any) {
        return of(ResultUtils.error());
    }

}
